package org.anyin.gitee.cloud.center.cdms.service.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import org.anyin.gitee.cloud.center.common.enums.RegisterSourceEnum;
import org.anyin.gitee.cloud.lib.core.web.serializer.StringAsDictDeserializer;

@Data
public class CsInfoRegisterDTO {

    /**
     * 头像
     */
    private String mobile;
    /**
     * openid
     */
    private String openid;
    /**
     * unionid
     */
    private String unionid;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 头像地址
     */
    private String avatarUrl;

    /**
     * 微信appid
     */
    private String appId;

    /**
     * 注册来源
     */
    @JsonDeserialize(using = StringAsDictDeserializer.class)
    private RegisterSourceEnum registerSource;
}
